package cn.com.srit.repository;

import cn.com.srit.entity.DeptEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface DeptRepository extends JpaRepository<DeptEntity, String>, JpaSpecificationExecutor<DeptEntity> {
    Integer countByCodeAndIdNot(String id, String code);
}
